function anomalySVMParams=DetermineAnomaly(analytes,reducedData,runParams, SVMParams)

idx = randperm(size(reducedData,1),500);
temp= reducedData(idx,4:end);
anomalySVMParams=CreateOneClass(temp,SVMParams);


predictedGroups = svmoneclassval(temp,anomalySVMParams.xsup,anomalySVMParams.alpha,anomalySVMParams.rho,anomalySVMParams.kernel,anomalySVMParams.kerneloption);
t =sort(predictedGroups,'descend');

anomalySVMParams.threshold =t(round(end*.7));


% idx = randperm(size(reducedData,1),4000);
% temp= reducedData(idx,4:end);
% predictedGroups = svmoneclassval(temp,anomalySVMParams.xsup,anomalySVMParams.alpha,anomalySVMParams.rho,anomalySVMParams.kernel,anomalySVMParams.kerneloption);

end